<!--#include file="./doctype.html"-->
<title>内容链接管理-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
    <ol class="breadcrumb">
        <li class="active"><a href="<%=fileName%>">列表首页</a></li>
    </ol>
	<div class="alert alert-success">
		<span class="close" data-dismiss="alert">&times;</span>
		<strong>内容关键词替换链接：</strong>要替换的内容包括：文章、产品、留言、简介
	</div>
	<% if isArray(data) then %>
		<table class="table table-bordered">
			<thead>
				<tr>
					<th class="w10">id</th>
					<th class="w20">内容关键词</th>
					<th>添加的URL</th>
					<th class="w15">替换次数(-1 为全部替换)</th>
				</tr>
			</thead>
			<tbody>
			<% for i = 0 to ubound(data, 2) %>
				<% Tid = data(0,i) %>
				<tr>
					<td>
						<label><input type="checkbox" name="batchId" value="<%=Tid%>" /> <%=Tid%></label>
					</td>
					<td><a href="<%=fileName%>?q=edit&id=<%=Tid%>"><%=data(1,i)%></a></td>
					<td>
					<a target="_blank" href="<%=app.hec(data(2,i))%>"><%=app.hec(data(2,i))%></a></td>
					<td><%=data(3,i)%></td>
				</tr>
			<% next %>
			</tbody>
		</table>
		<!--#include file="page.html"-->
		<div class="btn-group">
            <span class="btn btn-sm btn-default selectAll">
                <i class="glyphicon glyphicon-th"></i> 全选/反选
            </span>
            <span class="btn btn-sm btn-default deleteBatch">
                <i class="glyphicon glyphicon-trash"></i> 删除
            </span>
            <span class="btn btn-sm btn-default editBatch">
                <i class="glyphicon glyphicon-edit"></i> 修改
            </span>
        </div>
	<% else %>
		<!--#include file="noData.html"-->
	<% End if %>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function(){
$(this)
    .on('click', '.deleteBatch', function() {
        $.deleteBatch();
    })
    .on('click', '.editBatch', function() {
        $.editBatch();
    })
});
</script>
</body>
</html>